Eclipse Platform
Pre-release 3.0

org.eclipse.team.ui.synchronize.actions
Class DirectionFilterActionGroup

java.lang.Object
  extended byorg.eclipse.ui.actions.ActionGroup
      extended byorg.eclipse.team.ui.synchronize.actions.DirectionFilterActionGroup
All Implemented Interfaces:
EventListener, IPropertyChangeListener

public class DirectionFilterActionGroup
extends ActionGroup
implements IPropertyChangeListener

This ActionGroup provides filtering of a sync set by change direction. The actions are presented to the user as toolbar buttons where only one button is active at a time.

When a modes changes a property change event is fired from the participant with a value of TeamSubscriberParticipant.P_SYNCVIEWPAGE_MODE.

Since:
3.0
See Also:
TeamSubscriberParticipant

Constructor Summary
DirectionFilterActionGroup(TeamSubscriberParticipant participant, int supportedModes)
          Creates a direction filter group with the given supported modes.
 
Method Summary
 void dispose()
          This method is called by the user of an action group to signal that the group is no longer needed.
 void fillActionBars(IActionBars actionBars, String group)
           
 void fillToolBar(IToolBarManager toolBar)
           
 void propertyChange(PropertyChangeEvent event)
          Notification that a property has changed.
 
Methods inherited from class org.eclipse.ui.actions.ActionGroup
fillActionBars, fillContextMenu, getContext, setContext, updateActionBars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectionFilterActionGroup

public DirectionFilterActionGroup(TeamSubscriberParticipant participant,
                                  int supportedModes)
Creates a direction filter group with the given supported modes. The possible values for modes are defined by the TeamSubscriberParticipant class.

Parameters:
participant - the participant showing this group
supportedModes - the modes to be shown
See Also:
TeamSubscriberParticipant.BOTH_MODE, TeamSubscriberParticipant.OUTGOING_MODE, TeamSubscriberParticipant.INCOMING_MODE, TeamSubscriberParticipant.CONFLICTING_MODE, TeamSubscriberParticipant.ALL_MODES
Method Detail

fillActionBars

public void fillActionBars(IActionBars actionBars,
                           String group)

fillToolBar

public void fillToolBar(IToolBarManager toolBar)

propertyChange

public void propertyChange(PropertyChangeEvent event)
Description copied from interface: IPropertyChangeListener
Notification that a property has changed.

This method gets called when the observed object fires a property change event.

Specified by:
propertyChange in interface IPropertyChangeListener
Parameters:
event - the property change event object describing which property changed and how

dispose

public void dispose()
Description copied from class: ActionGroup
This method is called by the user of an action group to signal that the group is no longer needed. Subclasses typically implement this method to deregister any listeners or to free other resources.

The default implementation calls setContext(null). Subclasses may extend this method.

Overrides:
dispose in class ActionGroup

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.